using UnityEngine;

public class Follow : MonoBehaviour
{
    [SerializeField] private Player player;

    // Update is called once per frame
    void Update()
    {
        if (GameManager.instance.isGameActive == false) {
            return;
        }
        else {
            transform.Translate(Vector2.right * Time.deltaTime * player.moveSpeed);
        }
    }
}
